#ifndef __ZUITILELAYOUT_H__
#define __ZUITILELAYOUT_H__

#include "ZContainer.h"

namespace ZuiLib
{

	class ZTileLayout :public ZContainer
	{
	public:
		ZUI_CLASS_NAME("zui.TileLayout");
		ZTileLayout(void);
		~ZTileLayout(void);

		const char* GetClass() const;
		void* GetInterface(const char* pstrName);

		void SetPos(RECT rc);

		int GetFixedColumns() const;
		void SetFixedColumns(int iColums);
		int GetChildVPadding() const;
		void SetChildVPadding(int iPadding);

		SIZE GetItemSize() const;
		void SetItemSize(SIZE szSize);
		int GetColumns() const;
		int GetRows() const;
		void SetAttribute(const char* pstrName, const char* pstrValue);

	protected:
		DISALLOW_COPY_AND_ASSIGN(ZTileLayout);

		SIZE m_szItem;
		int m_nColumns;
		int m_nRows;

		int m_nColumnsFixed;
		int m_iChildVPadding;
		bool m_bIgnoreItemPadding;
	};



}//namespace


#endif